package com.fesine.ch01.lesson05.currentThreadExt;

/**
 * Created by Fesine on 2016/6/26.
 */
public class Run {


    public static void main(String[] args) {
        CountOperate countOperate = new CountOperate();
        Thread thread = new Thread(countOperate);
        thread.setName("A");
        thread.start();//自动调起run方法
        System.out.println("-----我是分隔线1");
        thread.run();//以主线程调起run方法
        System.out.println("-----我是分隔线2");
    }
}
